<h1>Listing hotels</h1>

<table>
  <tr>
    <th>Nom</th>
  </tr>

<% for hotel in @hotels %>
  <tr>
    <td><%=h hotel.nom %></td>
    <td><%= link_to 'Show', hotel %></td>
    <td><%= link_to 'Edit', edit_hotel_path(hotel) %></td>
    <td><%= link_to 'Destroy', hotel, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New hotel', new_hotel_path %>
